/*
 * @Author: your name
 * @Date: 2020-04-15 22:49:23
 * @LastEditTime: 2020-04-24 21:28:24
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \cloudEdu\src\router\modules\entranceExam.js
 */
// 考试入口
import course from "@/views/course";
export default {
  path: "/entranceExam",
  name: "entranceExam",
  component: course,
  redirect: { name: "entranceExam-index" },
  children: ((pre) => [
    // 首页
    { path: "index", name: `${pre}index`, component: () => import("@/views/entranceExam/index") },
    // 考试详情
    {
      path: "detail",
      name: `${pre}detail`,
      component: () => import("@/views/entranceExam/pages/detail"),
      meta: {
        title: "考试详情"
      }
    },
    // 错题回顾
    {
      path: "mistake",
      name: `${pre}mistake`,
      component: () => import("@/views/entranceExam/pages/mistake"),
      meta: {
        title: "错题回顾"
      }
    },
    // 答题结果
    {
      path: "answerResult",
      name: `${pre}answerResult`,
      component: () => import("@/views/entranceExam/pages/answerResult"),
      meta: {
        title: "答题结果"
      }
    }
  ])("entranceExam-")
};
